﻿using GMAC.ReportingSystem.Business.Entities;

namespace GMAC.ReportingSystem.Business.Components
{
    public class SecurityComponent
    {
        private DataAccess.SecurityDataAccess dac = new DataAccess.SecurityDataAccess();

        ///// <summary>
        ///// Gets the collection of pages grouped by category.
        ///// </summary>
        ///// <returns></returns>
        //public PageCategoryCollection GetPages()
        //{
        //    return dac.GetPages();
        //}


        /// <summary>
        /// Gets the collection of entities.
        /// </summary>
        /// <returns></returns>
        public EntitiesSecurityCollection GetEntities()
        {
            return dac.GetEntities();
        }

        /// <summary>
        /// Gets the menus.
        /// </summary>
        /// <returns></returns>
        public MenuCollection GetMenus()
        {
            return dac.GetMenus();
        }
    }
}